package com.university.trade.service.impl;

import javax.annotation.Resource;

import com.university.trade.dao.ProductBrandMapper;
import com.university.trade.entity.ProductBrand;
import com.university.trade.service.ProductBrandService;

public class ProductBrandServiceImpl implements ProductBrandService {
	@Resource
	private ProductBrandMapper productBrandMapper;
	@Override
	public int deleteByPrimaryKey(String brandId) {
		return this.productBrandMapper.deleteByPrimaryKey(brandId);
	}

	@Override
	public int insert(ProductBrand record) {
		return this.productBrandMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductBrand record) {
		return this.productBrandMapper.insertSelective(record);
	}

	@Override
	public ProductBrand selectByPrimaryKey(String brandId) {
		return this.productBrandMapper.selectByPrimaryKey(brandId);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductBrand record) {
		return this.productBrandMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductBrand record) {
		return this.productBrandMapper.updateByPrimaryKey(record);
	}

}
